
const env="t";
//f是前端模拟数据
//d是开发环境
//t是测试环境 
//p是线上环境 


var apiList;
if(env=="f"){
 apiList = {
   baseUrl:"https://wnworld.com/QianShangYun/php/",
   login: "login.php",//登录
   index:"index.php",//首页
   commissionDetail:"commissionDetail.php", //佣金规则
   spreadDetail:"spreadDetail.php", //推广详情页

   capitalTotal: "capitalTotal.php", //资金明细
   teamList:"teamList.php", //团队列表
   teamAdd: "teamAdd.php",//团队列表
   capitalList:"capitalList.php",
   capitalDetail: "capitalDetail.php",
   reportAdd: "reportAdd.php", //新增报备
   reportList: "reportList.php",//列表总数据,包括人数等等
   tiXian:"tiXian.php",
   tiXianForm: "tiXianForm.php",
   
   getCode:"sendSMS.php",//获取短信验证码
   reportDetail: "reportDetail.php"//报备列表数据
  }
} else if(env == "d") {   
  apiList = { 
    baseUrl: "https://hd-api.dev.xiaoyu.com/wxapp/qsy/qsy/",
    login: "login",//登录
    getCode:"getCode",
    index:"index",
    commissionDetail: "commissionDetail", //佣金规则
    spreadDetail: "spreadDetail", //推广详情页
    reportAdd: "reportAdd", //新增报备
    reportList: "reportList",//列表总数据
    reportDetail: "reportDetail",//报备列表数据
    teamList: "teamList", //团队列表
    teamAdd: "teamAdd", //团队列表
    capitalList: "capitalList",
    capitalTotal: "capitalTotal", //资金明细
    capitalDetail: "capitalDetail",
    tixianstatus:"tixianstatus",
    tiXian: "tiXian",
    tiXianForm: "tiXianForm",
    getBindCode:"getBindCode",
    bindUser:"bindUser",
    bannerContent:"bannerContent",
    itemDetail:"itemDetail"
  }
} else if(env == "t") {
  apiList = {
    baseUrl: "https://api.test.haodian.cn/wxapp/qsy/qsy/",
    login: "login",//登录
    getCode: "getCode",
    index: "index",
    commissionDetail: "commissionDetail", //佣金规则
    spreadDetail: "spreadDetail", //推广详情页
    reportAdd: "reportAdd", //新增报备
    reportList: "reportList",//列表总数据
    reportDetail: "reportDetail",//报备列表数据
    teamList: "teamList", //团队列表
    teamAdd: "teamAdd", //团队列表
    capitalList: "capitalList",
    capitalTotal: "capitalTotal", //资金明细
    capitalDetail: "capitalDetail",
    tixianstatus: "tixianstatus",
    tiXian: "tiXian",
    tiXianForm: "tiXianForm",
    getBindCode: "getBindCode",
    bindUser: "bindUser",
    bannerContent: "bannerContent",
    itemDetail: "itemDetail"
  }
}else{  
  apiList = {
    baseUrl: "https://api.haodian.cn/wxapp/qsy/qsy/",
    login: "login",//登录
    getCode: "getCode",
    index: "index",
    commissionDetail: "commissionDetail", //佣金规则
    spreadDetail: "spreadDetail", //推广详情页
    reportAdd: "reportAdd", //新增报备
    reportList: "reportList",//列表总数据
    reportDetail: "reportDetail",//报备列表数据
    teamList: "teamList", //团队列表
    teamAdd: "teamAdd", //团队列表
    capitalList: "capitalList",
    capitalTotal: "capitalTotal", //资金明细
    capitalDetail: "capitalDetail",
    tixianstatus: "tixianstatus",
    tiXian: "tiXian",
    tiXianForm: "tiXianForm",
    getBindCode: "getBindCode",
    bindUser: "bindUser",
    bannerContent: "bannerContent",
    itemDetail: "itemDetail"
  }
}

module.exports = apiList;